using System;
using System.Web.Mvc;
using Headspring.Training.Core;
using StructureMap;

namespace Headspring.Training.DependencyResolution
{
	public class ControllerFactory : DefaultControllerFactory
	{
		protected override IController GetControllerInstance(Type controllerType)
		{
			Logger.Debug(this, "Creating controller " + controllerType.Name);
			return (IController) ObjectFactory.GetInstance(controllerType);
		}
	}
}